const { defineConfig } = require('@vue/cli-service')
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
module.exports = defineConfig({
  transpileDependencies: [
    'vuetify'
  ],
  pluginOptions: {
    electronBuilder: {
      preload: 'src/preload.js',
      customFileProtocol: "./",
      externals: ['serialport'],
      builderOptions: {
        win: {
          icon: './public/logo.png',
          target: ['nsis', 'zip']
        }
      }
    }
  },
  chainWebpack: (config) => {
    config.plugin('monaco').use(new MonacoWebpackPlugin())
  },
})